import { path } from "../../config/path";
import request from './request';

/** 员工列表 GET /manage/get_platformuser_list */
export async function platformuser_list(body: any, options?: any) {
  return request(path + '/manage/get_platformuser_list', {
    method: 'GET',
    headers: {
      Authorization: localStorage.loginToken,
    },
    params: body,
    ...(options || {}),
  });
}
/** 员工列表(下拉框) GET /manage/get_platformuser_list */
export async function platformuser_select(body?: any, options?: any) {
  return request(path + '/manage/get_platformuser_select', {
    method: 'GET',
    headers: {
      Authorization: localStorage.loginToken,
    },
    params: body,
    ...(options || {}),
  });
}
/** 新建/编辑员工 POST /manage/add_edit_platformuser */
export async function add_edit_platformuser(body: any, options?: any) {
  return request(path + '/manage/add_edit_platformuser', {
    method: 'POST',
    headers: {
      Authorization: localStorage.loginToken,
    },
    data: body,
    ...(options || {}),
  });
}
/** 数据字典 GET /common/get_field_list */
export async function filedlist(body: any, options?: any) {
  return request(path + '/common/get_field_list', {
    method: 'GET',
    headers: {
      Authorization: localStorage.loginToken,
    },
    params: body,
    ...(options || {}),
  });
}
/** 管理中心员工申请绑定列表 GET /manage/platform_doctor_bind_application_list */
export async function platform_doctor_bind_application_list(body: any, options?: any) {
  return request(path + '/manage/platform_doctor_bind_application_list', {
    method: 'GET',
    headers: {
      Authorization: localStorage.loginToken,
    },
    params: body,
    ...(options || {}),
  });
}
/** 审批详情 GET /manage/platform_doctor_bind_application_info */
export async function platform_doctor_bind_application_info(body: any, options?: any) {
  return request(path + '/manage/platform_doctor_bind_application_info', {
    method: 'GET',
    headers: {
      Authorization: localStorage.loginToken,
    },
    params: body,
    ...(options || {}),
  });
}
/** 申请审批 POST /manage/permission_doctor_bind_platform */
export async function permission_doctor_bind_platform(body?: any, options?: any) {
  return request(path + '/manage/permission_doctor_bind_platform', {
    method: 'POST',
    headers: {
      Authorization: localStorage.loginToken,
    },
    data: body,
    ...(options || {}),
  });
}
/** 修改员工状态 POST /manage/edit_platformuser_status */
export async function edit_platformuser_status(body?: any, options?: any) {
  return request(path + '/manage/edit_platformuser_status', {
    method: 'POST',
    headers: {
      Authorization: localStorage.loginToken,
    },
    data: body,
    ...(options || {}),
  });
}
/** 员工详情 GET /manage/get_platformuser_info */
export async function platformuser_info(body: any, options?: any) {
  return request(path + '/manage/get_platformuser_info', {
    method: 'GET',
    headers: {
      Authorization: localStorage.loginToken,
    },
    params: body,
    ...(options || {}),
  });
}
/** 设置角色 POST /manage/edit_platformuser_role */
export async function edit_platformuser_role(body?: any, options?: any) {
  return request(path + '/manage/edit_platformuser_role', {
    method: 'POST',
    headers: {
      Authorization: localStorage.loginToken,
    },
    data: body,
    ...(options || {}),
  });
}
/** 删除/解绑员工 POST /manage/delete_platformuser */
export async function delete_platformuser(body?: any, options?: any) {
  return request(path + '/manage/delete_platformuser', {
    method: 'POST',
    headers: {
      Authorization: localStorage.loginToken,
    },
    data: body,
    ...(options || {}),
  });
}
/** 批量导入员工 POST /manage/import_platformuser */
export async function import_platformuser(body?: any, options?: any) {
  return request(path + '/manage/import_platformuser', {
    method: 'POST',
    headers: {
      Authorization: localStorage.loginToken,
    },
    data: body,
    ...(options || {}),
  });
}